package com.woniu.common.entity;

import java.io.Serializable;

/**
 * tb_jp_rentabed
 * @author 
 */
public class TbJpRentabed implements Serializable {
    private Long id;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 订单状态:1待支付、2 已支付、3进行中、4已完成
     */
    private Integer orderStatus;

    /**
     * 异常原因
     */
    private String abnormality;

    /**
     * 下单时间
     */
    private String orderTime;

    /**
     * 归还时间
     */
    private String giveBackTime;

    /**
     * 床位id
     */
    private Long bedid;

    /**
     * 用户id
     */
    private Long userid;

    /**
     * 租借时长
     */
    private String leaseTime;

    /**
     * 状态:1正常结算、2异常结算
     */
    private Integer status;

    /**
     * 租金
     */
    private Float rent;

    /**
     * 支付时间
     */
    private String paymentTime;

    private String prepayId;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getAbnormality() {
        return abnormality;
    }

    public void setAbnormality(String abnormality) {
        this.abnormality = abnormality;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getGiveBackTime() {
        return giveBackTime;
    }

    public void setGiveBackTime(String giveBackTime) {
        this.giveBackTime = giveBackTime;
    }

    public Long getBedid() {
        return bedid;
    }

    public void setBedid(Long bedid) {
        this.bedid = bedid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getLeaseTime() {
        return leaseTime;
    }

    public void setLeaseTime(String leaseTime) {
        this.leaseTime = leaseTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Float getRent() {
        return rent;
    }

    public void setRent(Float rent) {
        this.rent = rent;
    }

    public String getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(String paymentTime) {
        this.paymentTime = paymentTime;
    }

    public String getPrepayId() {
        return prepayId;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbJpRentabed other = (TbJpRentabed) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderNumber() == null ? other.getOrderNumber() == null : this.getOrderNumber().equals(other.getOrderNumber()))
            && (this.getOrderStatus() == null ? other.getOrderStatus() == null : this.getOrderStatus().equals(other.getOrderStatus()))
            && (this.getAbnormality() == null ? other.getAbnormality() == null : this.getAbnormality().equals(other.getAbnormality()))
            && (this.getOrderTime() == null ? other.getOrderTime() == null : this.getOrderTime().equals(other.getOrderTime()))
            && (this.getGiveBackTime() == null ? other.getGiveBackTime() == null : this.getGiveBackTime().equals(other.getGiveBackTime()))
            && (this.getBedid() == null ? other.getBedid() == null : this.getBedid().equals(other.getBedid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getLeaseTime() == null ? other.getLeaseTime() == null : this.getLeaseTime().equals(other.getLeaseTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getRent() == null ? other.getRent() == null : this.getRent().equals(other.getRent()))
            && (this.getPaymentTime() == null ? other.getPaymentTime() == null : this.getPaymentTime().equals(other.getPaymentTime()))
            && (this.getPrepayId() == null ? other.getPrepayId() == null : this.getPrepayId().equals(other.getPrepayId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderNumber() == null) ? 0 : getOrderNumber().hashCode());
        result = prime * result + ((getOrderStatus() == null) ? 0 : getOrderStatus().hashCode());
        result = prime * result + ((getAbnormality() == null) ? 0 : getAbnormality().hashCode());
        result = prime * result + ((getOrderTime() == null) ? 0 : getOrderTime().hashCode());
        result = prime * result + ((getGiveBackTime() == null) ? 0 : getGiveBackTime().hashCode());
        result = prime * result + ((getBedid() == null) ? 0 : getBedid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getLeaseTime() == null) ? 0 : getLeaseTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRent() == null) ? 0 : getRent().hashCode());
        result = prime * result + ((getPaymentTime() == null) ? 0 : getPaymentTime().hashCode());
        result = prime * result + ((getPrepayId() == null) ? 0 : getPrepayId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", abnormality=").append(abnormality);
        sb.append(", orderTime=").append(orderTime);
        sb.append(", giveBackTime=").append(giveBackTime);
        sb.append(", bedid=").append(bedid);
        sb.append(", userid=").append(userid);
        sb.append(", leaseTime=").append(leaseTime);
        sb.append(", status=").append(status);
        sb.append(", rent=").append(rent);
        sb.append(", paymentTime=").append(paymentTime);
        sb.append(", prepayId=").append(prepayId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}